relative max min of a graph